package router

import (
	"octopus/experiment/app/command"

	"github.com/gin-gonic/gin"
)

func HTTP(engine *gin.Engine) {
	engine.Use(gin.Recovery())
	versionGroup := engine.Group("/v1")

	// workplace
	workerPlaceRouter := versionGroup.Group("/workspace")
	{
		workerPlaceRouter.POST("/create", command.WorkSpaceCreate) // 创建工作空间
	}
}
